Skip to content

gh-154272: Skip forkserver tests when the start method is unavailable#154274

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:forkserver-skip-unavailable
Jul 22, 2026
Merged

gh-154272: Skip forkserver tests when the start method is unavailable#154274
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:forkserver-skip-unavailable

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 20, 2026

Copy link
Copy Markdown
Member

On platforms where forkserver is unavailable ('forkserver' not in multiprocessing.get_all_start_methods()), some tests error instead of skipping: concurrent_futures ProcessPoolForkserver* (via get_context('forkserver')ValueError), test_init's test_forkserver, and test_multiprocessing_forkserver.test_preload (direct get_context in setUp). Guard the forkserver test package in its __init__.py and add get_all_start_methods() checks to the concurrent_futures mixin and test_forkserver.

Related: GH-154271 (makes forkserver available on Solaris/illumos; this is the independent test fix).

🤖 Generated with Claude Code

…ilable

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir topic-multiprocessing labels Jul 20, 2026
@serhiy-storchaka
serhiy-storchaka merged commit 13e3f8a into python:main Jul 22, 2026
121 of 147 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 13e3f8aa839d71285f3408241b0518da499eac39 3.14

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 13e3f8aa839d71285f3408241b0518da499eac39 3.13

@bedevere-app

bedevere-app Bot commented Jul 22, 2026

Copy link
Copy Markdown

GH-154468 is a backport of this pull request to the 3.15 branch.

@bedevere-app

bedevere-app Bot commented Jul 22, 2026

Copy link
Copy Markdown

GH-154471 is a backport of this pull request to the 3.14 branch.

@bedevere-app

bedevere-app Bot commented Jul 22, 2026

Copy link
Copy Markdown

GH-154472 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jul 22, 2026
serhiy-storchaka added a commit that referenced this pull request Jul 22, 2026
…ailable (GH-154274) (GH-154468)

(cherry picked from commit 13e3f8a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
serhiy-storchaka added a commit that referenced this pull request Jul 22, 2026
…ailable (GH-154274) (GH-154471)

(cherry picked from commit 13e3f8a)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
serhiy-storchaka added a commit that referenced this pull request Jul 22, 2026
…ailable (GH-154274) (GH-154472)

(cherry picked from commit 13e3f8a)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant